package com.me.waterphase;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;

public class WaterSprite {

	
	private Texture texture;
	private float width;
	private float height;
		
	public WaterSprite(String _spriteName, float _width, float _height){
		
		width = _width;
		height = _height;
		
		texture = new Texture(Gdx.files.internal(GraphicManager.MEDIA_SPRITE_PATH + _spriteName));
	}
	
	public void render(float _x, float _y){	
		WaterWorld.getStage().begin();
		WaterWorld.getStage().draw(texture, _x, _y,width, height);
		WaterWorld.getStage().end();
	}
	
	public void dispose()
	{
		texture.dispose();
	}
	
}
